//
//  JQSettingGroup.h
//  JQKit
//
//  Created by JQZ on 2017/12/29.
//  Copyright © 2017年 JQZ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "JQSettingItem.h"

#define  JQCreateSettingGroup(Header, Footer, Items) \
    [JQSettingGroup groupWithHeaderTitle:Header footerTitle:Footer items:[NSMutableArray arrayWithArray:Items]]

@interface JQSettingGroup : NSObject

/**
 *  setcion元素
 */
@property (nonatomic, strong) NSMutableArray<JQSettingItem*> *items;

/**
 *  section头部标题
 */
@property (nonatomic, copy) NSString *headerTitle;

/**
 *  section尾部说明
 */
@property (nonatomic, copy) NSString *footerTitle;

/**
 *  Header 高度
 */
@property (nonatomic, assign) CGFloat headerHeight;

/**
 *  Footer 高度
 */
@property (nonatomic, assign) CGFloat footerHeight;

/**
 *  setcion元素个数
 */
@property (nonatomic, assign, readonly) NSUInteger count;

+ (instancetype)groupWithHeaderTitle:(NSString*)headerTitle footerTitle:(NSString*)footerTitle items:(NSMutableArray<JQSettingItem*> *)items;

@end
